#include "ERR_HAND.h"

void err_hand(int err_code) {
	switch (err_code) {
		case ERR_R4_INV_PRIOR:
			printf("The given priority was invalid.\n");
			break;
		case ERR_R4_USED_NAME:
			printf("A process with the given name already exists.\n");
			break;
		case ERR_R4_LONG_NAME:
			printf("The specified process name is too long.\n");
			break;
		case ERR_R4_LONG_FNAME:
			printf("The specified program filename is too long.\n");
			break;
		case ERR_R4_NO_FILE:
			printf("The specified program file was not found.\n");
			break;
		case ERR_R4_INV_FILE:
			printf("The specifid program file is invalid.\n");
			break;
		case ERR_R4_PROG_SIZE:
			printf("The size needed for the program is too large.\n");
			break;
		case ERR_R4_INV_LADD:
			printf("The load address is invalid.\n");
			break;
		case ERR_R4_LOAD_FAIL:
			printf("The program failed to load.\n");
			break;
		case ERR_R4_NO_PCB:
			printf("There is no PCB by that name.\n");
			break;
		case ERR_R4_TYPE_SYS:
			printf("Cannot kill a system process.\n");
			break;
		default:
			printf("An unknown error has occurred.\n");
	}
}